﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WUCArtboard.ascx.cs" Inherits="WebAppArtreve.views.shared.components.arts.WUCArtboard" %>
<%@ Register src="WUCArtImage.ascx" tagname="WUCArtImage" tagprefix="uc1" %>
<asp:ListView ID="ListViewArtboard" runat="server" 
DataSourceID="ODSArtboardArtsALL">
    <LayoutTemplate>
        <article id="itemPlaceholder" runat="server" />
    </LayoutTemplate>
    <ItemTemplate>
        <article id="artView">           
            <section class="art-image">
            <a href="Art.aspx?id=<%# Eval("Id")%>">
                <uc1:WUCArtImage ArtId='<%# Eval("Id")%>' ID="WUCArtImage1" runat="server" />
            </a>            
            </section>
             <header>
                <a href="Art.aspx?id=<%# Eval("Id")%>">
                    <h3><%# Eval("Name")%></h3>
                </a>                               
                <asp:LinkButton ID="linkRemoveArtFromArtboard" runat="server" 
    CommandArgument='<%# Eval("Id")%>' 
    oncommand="linkRemoveArtFromArtboard_Command">Remove art
            </asp:LinkButton> 
                <!--<img alt="delete art from artboard"
                src="../../../../styles/assets/images/cross.png" />-->                
                <section class="article-info">
                </section>
            </header> 
            <section class="art-description">
            </section>
        </article>
    </ItemTemplate>
</asp:ListView>
<asp:ObjectDataSource ID="ODSArtboardArtsALL" 
    runat="server" 
    TypeName="CLibArtreve.bll.ArtBLL"
    SelectMethod="GetArtForArtboardByUserId"
    OnObjectCreating="ODSArtboardArtsALL_OnObjectCreating" 
    onselecting="ODSArtboardArtsALL_Selecting">
    <SelectParameters>
        <asp:QueryStringParameter Name="id" QueryStringField="Id" Type="Int64" DefaultValue="0" />
    </SelectParameters>
</asp:ObjectDataSource>